package experiment1;

/**
 * @Auther:云尚学Java
 * 分桔子问题
 *
 */
public class Test4 {
    public static void main(String []args){
        int avg=2520/6;
        int a[]=new int[6];
        int left=0;
        for(int i=0;i<6;i++){
            if(i==0){
                a[i]=(avg-210)*(8-i)/(7-i)-left;
                left=a[i]+left-(avg-210);

            }
            else{
                a[i]=avg*(8-i)/(7-i)-left;
                left=a[i]+left-avg;
            }
            System.out.println(i+1+","+a[i]);
        }
    }
}
